package com.cch.cooperation.api.zone.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

/**
 * 空间加入请求参数
 *
 * @author cch
 */
@Data
public class ZoneUserApplyJoinDTO {

    @ApiModelProperty(value = "邀请码", required = true)
    @NotEmpty(message = "邀请码不能为空")
    private String joinCode;

    @ApiModelProperty(value = "用户id", hidden = true)
    @NotEmpty(message = "用户id不能为空")
    private String userId;

    @ApiModelProperty(value = "备注")
    @Length(max = 200, message = "备注不能超过200个字符")
    private String remark;
}
